<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:s="http://jboss.org/schema/seam/taglib"
      template="template.xhtml"
      >
	<ui:param name="tagName" value="s:fileUpload" />
	<ui:define name="body">
		<p>Renders a file upload control.</p>
		<h:form enctype="multipart/form-data">
			<h:panelGrid columns="2">
				<h:outputText value="#{person.name}'s Picture" />
				<s:fileUpload data="#{person.picture.data}" contentType="#{person.picture.contentType}" fileName="#{person.picture.fileName}" accept="images/png,images/jpg" />
				<h:commandButton action="#{personHome.update}" value="Update" />
				<h:outputText/>
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>